Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backports new azure resources into v7 #910

Merged
merged 1 commit into from
Feb 10, 2023
Merged

Conversation

preslavgerchev
Copy link
Contributor

Backports #810 into v7.

…ription (#810)

Introduce a new `azure.subscription` resource:
```
cnquery> azure.subscription{name state}
azure.subscription: {
  name: "Mondoo Testing"
  state: "Enabled"
}
```

All the resources are now moved from `azure.*` to
`azure.subscription.*`. This lets us build a resource hierarchy more
clearly. Before:
```

cnquery> azure.compute.vms{name}
azure.compute.vms: [
  0: {
    name: "Security-Team-vm-linux-1-b9qa"
  }
  1: {
    name: "Security-Team-vm-linux-1-mjau"
  }
]
```

After:
```
cnuery> azure.subscription.compute.vms{name}
azure.subscription.compute.vms: [
  0: {
    name: "Security-Team-vm-linux-1-b9qa"
  }
  1: {
    name: "Security-Team-vm-linux-1-mjau"
  }
]
```


There are aliases introduced to keep the old resources untouched to
avoid breaking changes so `azure.compute.vms` will still work
@preslavgerchev preslavgerchev merged commit 04e6aa4 into v7 Feb 10, 2023
@preslavgerchev preslavgerchev deleted the preslav/cp-azure-v7 branch February 10, 2023 10:41
@github-actions github-actions bot locked and limited conversation to collaborators Feb 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants